<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- document文档模型 -->
    <div id="a">谢谢</div>
    <div>谢谢</div>
    <script>
        // document.write('hello world');
        // var text = document.getElementById('a');
        // text.onclick = function() {
        //     alert('你点击了小滴课堂')
        // };
        // //浏览器对象模型 
        // localStorage.setItem('a', '222')
        // var name = 'xd';
        // console.log(name);



        var person = {
            name: '张三',
            age: 13,
            sex: 'boy',
            sayHello: function() {
                console.log('我是' + this.name);

            }
        };

        var nane = person.sayHello();
        var name2 = person.name;
        document.write(nane + name2);
    </script>
    <script>
    </script>
</body>

</html>